/**
 * 
 */
package com.test;

import org.joy.nlp.HLWordSpliter;

/**
 * @author LvSaiHui {gurnfe@163.com}
 * @version 1.0 <br>
 *          Copyright (C), 2007-2008, ZJUT <br>
 *          This program is protected by copyright laws. <br>
 *          Program Name: HLWordSpliterRunnable.java <br>
 *          Date: 2009-3-5 <br>
 *          Description:
 */
public class HLWordSpliterRunnable implements Runnable {
	ThreadLocal threadLocal = new ThreadLocal();

	public void run() {
		if (threadLocal.get() == null) {
			threadLocal.set(new HLWordSpliter());

		} else {
			HLWordSpliter h = (HLWordSpliter) threadLocal.get();
			System.out.println(Thread.currentThread().getName() + " : "
					+ h.split("美国中央情报局是   特务间谍机构。", true));

		}
	}

}
